package cc.rengu.igas.bomp.common.enums;

/**
 * 业务响应码枚举类
 * Created by 王成 on 2017/6/27.
 */
public enum RespCodeEnum {
    TRANS_SUCCESS("00000000", "交易成功"),
    MSG_VALID_CHECK_ERROR("ER11BM01", "报文检查失败"),
    MCHNT_INFO_NOT_FOUND("ER12BM01", "获取商户信息失败"),
    CONFIG_PARAM_NOT_EXIST("ER12BM02", "配置参数不存在"),
    GENERATE_SIGN_ERROR("ER12BM03", "生成数字签名失败"),
    VERIFY_SIGN_ERROR("ER12BM04", "校验数字签名失败"),
    CALL_BIZ_SERVICE_ERROR("ER12BM05", "调用业务系统处理失败"),
    REFUND_AMT_OVER_LIMIT("ER12BM06", "退款金额超出金额限制"),
    VERIFY_MAC_ERROR("ER12BM07", "验证mac失败"),
    QUERY_ORGANIZATION_ERROR("ER12BM08", "获取机构信息失败"),
    QUERY_INDUSTRY_ERROR("ER12BM09", "获取行业类别信息失败"),
    QUERY_AREAINFO_ERROR("ER12BM10", "获取地区代码信息失败"),
    QUERY_FEE_RULE_ERROR("ER12BM11", "查询费率模板信息失败"),
    IMAGE_NOT_MEET_STANDARD("ER12BM12", "图片不符合限制要求"),
    FILE_NOT_EXIST("ER12BM13", "文件不存在"),
    NOT_SUPPORT_ORT_TYPE("ER12BM14", "不支持的操作类型"),
    GENERATE_MCHNT_QRCODE_ERROR("ER12BM15", "生成商户收款聚合码失败"),
    REGISTER_QRCODE_INFO_ERROR("ER12BM16", "登记二维码信息失败"),
    GET_QRCODE_INFO_ERROR("ER12BM17", "获取二维码信息失败"),
    QRCODE_ALREADY_BINDED("ER12BM18", "二维码已绑定"),
    BIND_QRCODE_ERROR("ER12BM19", "绑定二维码失败"),
    UPDATE_QRCODE_INFO_ERROR("ER12BM20", "更新二维码信息失败"),
    SEND_SMS_CODE_ERROR("ER12BM21", "发送短信验证码失败"),
    GET_QR_MCHNT_INFO_ERROR("ER12BM22", "获取二维码商户信息失败"),
    UPDATE_QR_MCHNT_INFO_ERROR("ER12BM23", "更新二维码商户信息失败"),
    QUERY_QR_TRANS_STATUS_ERROR("ER12BM24", "查询二维码交易状态失败"),
    GENERATE_SEQ_NO_ERROR("ER12BM25", "生成数据库SEQUENCE失败"),
    RECORD_NOT_FOUND("ER12BM26", "操作记录不存在"),
    DATABASE_OPR_ERROR("ER12BM27", "数据库操作失败"),
    ILLEGAL_OPERATION("ER12BM28", "非法操作"),
    MCHNT_CANCEL("ER12BM29", "商户已注销"),
    AUDIT_STATUS_CHANGE_ERROR("ER12BM30", "审核状态流转失败"),
    MANAGE_OPERATE_ERROR("ER12BM31", "管理操作失败"),
    QUERY_BASEDATA_IS_NULL("ER12BM32", "数据库查询失败"),
    MCHNT_STATUS_ABNORMAL("ER12BM33", "商户状态不允许进行该操作"),
    QUERY_ORG_INFO_ERROR("ER12BM34", "查询拓展经理所在机构失败"),
    UPDATE_ALIMCHNT_INFO_ERROR("ER12BM35", "更新支付宝商户信息失败"),
    QUERY_ACCT_INFO_ERROR("ER12BM36", "查询商户结算账户信息失败"),
    QUERY_MCHNT_PROD_INFO_ERROR("ER12BM37", "查询商户产品信息失败"),
    QUERY_MCHNT_SIGN_INFO_ERROR("ER12BM38", "查询商户签约信息失败"),
    QUERY_MANAGER_INFO_ERROR("ER12BM39", "查询拓展经理信息失败"),
    QUERY_MCHNT_APPLY_INFO_ERROR("ER12BM40", "查询商户入驻申请信息失败"),
    MCHNT_INSPECT_INFO_ERROR("ER12BM41", "商户巡检信息查询失败"),
    UPDATE_INSPECT_INFO_ERROR("ER12BM42", "更新商户巡检信息失败"),
    CREATE_VIRT_ACCT_INFO_ERROR("ER12BM43", "生成虚拟账户失败"),
    GET_USER_BIND_INFO_ERROR("ER12BM44", "获取用户绑定商户信息失败"),
    USER_NOT_LOGIN_OR_SESSION_IS_EXPIRED("ER12BM45", "用户未登录或会话已过期"),
    REGISTER_TERM_ERROR("ER12BM46", "注册终端设备失败"),
    QUERY_TERMINFO_ERROR("ER12BM47", "获取终端信息失败"),
    CREATE_INST_MACHNT_INFO_ERROR("ER12BM48", "商户入驻成功，微信或支付宝商户进件失败，需进行第三方商户进件"),
    WECHAT_SET_PATH_OR_APPID_ERROR("ER12BM49", "如果需要支持微信APP或小程序支付，请自行设置微信APP或者小程序的id和key"),
    QUERY_AUTH_USER_IS_NULL("ER12BM50", "查询用户信息失败"),
    PARAM_ERROR("ER12BM51", "入参检查失败"),
    QUERY_DATA_IS_NULL("ER12BM52", "查询数据为空"),
    UPDATE_WECHAT_MCHNT_INFO_ERROR("ER12BM53", "更新支付宝商户信息失败"),
    CREATE_WECHAT_MACHNT_INFO_ERROR("ER12BM54", "微信商户进件失败，需进行第三方商户进件"),
    CREATE_ALIPAY_MACHNT_INFO_ERROR("ER12BM55", "支付宝商户进件失败，需进行第三方商户进件"),
    PAY_IS_DONE("ER12BM56", "该营销活动已营销打款成功,本次交易拒绝"),
    NO_MC_ACCOUNT_INFO_ERROR("ER12BM57", "法人机构营销活动收款账户不存在"),

    CORE_ACCT_SIGN_ERROR("ER12BM58", "商户入驻审核成功，进行账户核心签约失败，需进行核心账户签约"),
    NOT_NEED_CORE_ACCT_SIGN("ER12BM59", "该法人行无需进行核心账户签约"),
    NOT_ALLOW_D0_WITHDRAWAL("ER12BM60", "该法人行无垫资户，不允许设置D0/D1结算或提现"),
    NOT_ALLOW_TO_SET_ACCT_INFO("ER12BM61", "连锁商户门店且非独立维护，不需要设置结算账户信息"),
    NOT_ALLOW_TO_SET_PROD_INFO("ER12BM62", "连锁商户门店且非独立维护，不需要设置产品信息"),
    NOT_ALLOW_D0_BY_INST("ER12BM63", "该法人行不允许设置D0/D1结算"),
    NOT_ALLOW_WITHDRAWAL_OF_CONDITION("ER12BM64", "该商户未达到开通提现要求，需要入驻超过90天，连续交易超过30天"),
    NOT_ALLOW_TRANS("ER12BM65", "权限校验失败，不允许进行该操作"),
    USER_NO_AUTHORITY("ER12BM66", "用户无权限"),
    BLACK_LIST_NET_WORD("ER12BM67", "该网址为黑名单商户网址，请重新输入"),
    CHAIN_IS_NULL("ER12BM68", "连锁商户不存在，请重新输入"),
    SIGN_INST_IS_NULL("ER12BM69", "签约机构不存在，请重新输入"),
    PLAT_INST_IS_NULL("ER12BM70", "平台机构不存在，请重新输入"),
    GROUP_INST_IS_NULL("ER12BM71", "集团机构不存在，请重新输入"),
    AGENT_INST_IS_NULL("ER12BM72", "代理机构不存在，请重新输入"),
    NOT_ALLOW_TO_SET_WITHDRAWAL_OF_FEE("ER12BM73", "该商户存在特殊费率，不允许开通提现"),
    NOT_ALLOW_TO_SET_D0_D1_OF_FEE("ER12BM73", "该商户存在特殊费率，不允许设置D0或D1"),
    BUSINESS_LICENSE_REPEAT("ER12BM74", "同一营业执照超过签约上限，不允许再次签约"),
    ACCT_NO_REPEAT("ER12BM75", "同一结算账户超过签约上限，不允许再次签约"),
    NOT_TO_ALLOW_WITHDRAWAL_AND_DO("ER12BM76", "不允许同时设置D0和提现"),
    NOT_TO_ALLOW_SET_FEE("ER12BM77", "该商户存设置D0/D1或提现，不允许设置特殊费率"),
    BLACK_LIST_LEGAL_INFO("ER12BM78", "该法人证件为黑名单商户证件，请重新输入"),
    BLACK_LIST_LICENCE_CODE("ER12BM79", "该商户证件为黑名单商户证件，请重新输入"),
    NOT_BANK_CARD("ER12BM80", "账号非本行卡"),
    AGENT_ERROR("ER12BM81", "代理商不存在或代理商状态异常"),
    PRIVATE_ENTERPRISE_LEGAL_ACCT_NAME_MATCH("ER12BM82", "结算账户所属人不符合监控要求，需上送资金存管证明照"),
    NOT_BANK_CARD_ORD_STATUS_ERROR("ER12BM83", "账号非本行卡或核心校验本行卡账户状态异常"),
    NOT_ALI_CHANNEL_TYPE("ER12BM84", "商户产品包含支付宝交易需要设置支付宝费率通道"),
    NOT_WECHAT_CHANNEL_TYPE("ER12BM85", "商户产品包含微信交易需要设置微信费率通道"),
    VERIFY_ACCT_NAME_MATCH("ER12BM86", "商户性质为企业，结算账户类型请选择对公户"),
    MCHNT_MANAGE_PHONE_MATCH("ER12BM87", "商户联系人电话与拓展经理手机号一致，不允许进行商户入驻"),
    IMAGE_NOT_FIND("ER12BM88", "查询图片信息为空"),
    CHAIN_IS_NOT_NORMAL("ER12BM89", "连锁商户状态非正式，不允许新增门店"),
    SETTLE_ACCT_TYPE_IS_NOT_MATCH("ER12BM90", "结算账户类型不匹配，请选择正确的结算账户类型"),
    MAX_BATCH_APPLY_QR_NUM("ER12BM91", "单次生成二维码数量最多允许"),
    PLAT_INST_WECHAT_NO_IS_NULL("ER12BM92", "所选平台商户未进行微信进件，该商户不允许为设置非独立进件"),
    VERIFY_SIX_ELEMENT_ERROR("ER12BM93", "六要素(营业执照类型+营业执照号+证件类型+证件号+手机号+结算账户)校验失败"),
    ACCT_STATUS_ERROR("ER12BM94", "结算账户状态异常"),
    ACCT_LEVEL_ERROR("ER12BM95", "结算账户等级不符合规定,建议使用一类户"),
    ACCT_TYPE_ERROR("ER12BM96", "结算账户类型不符合规定,建议使用【本行对公户】或【本行借记卡】"),
    MCHNT_INST_IS_NULL("ER12BM97", "查询商户信息不存在，请重新输入"),
    BANK_CANNOT_RESERVE_FUND("ER12BM98", "当前法人行不允许开通备付金账户"),
    ACCT_MUST_CORPORATE("ER12BM99", "当前法人行要求结算账户必须为对公户"),

    UPRK_BCSQ_HITIN_ERROR("ER12BM0A", "当前商户命中银联银行卡风险共享信息数据，请谨慎选择操作!"),

    MCHNT_CANNOT_REAL_SETTLE("ER13BM01", "当前商户不允许开通实时清算"),
    MCHNT_CANNOT_CASH_WITHDRAWAL("ER13BM02", "当前商户不允许开通提现"),
    MCHNT_CANNOT_D0("ER13BM03", "当前商户不允许开通D0"),
    QUERY_CARD_BIN_INFO_FAIL("ER13BM04", "卡号输入不规范或卡号不存在"),
    UNION_IS_NOT_INST("ER13BM05", "该银联机构在联行行号信息表中不存在"),
    ACCT_NAME_ERROR("ER13BM06", "结算账户名与实际账户名不符,请确认"),
    IMAGE_OUT_OF_SIZE("ER13BM07", "图片大小超出所需图片大小"),
    IMAGE_NAME_ERROR("ER13BM08", "请检查图片名,是否添加后缀名"),
    NOT_OTHER_BANK_CARD("ER13BM09", "填写的账户信息非他行卡，与选择的账户类型不符"),
    MCHNT_REGISTER_EOOOR("ER13BM10", "自定义描述:+请联系录入员在内管平台根据上述提示信息进行商户修改操作,并重新审核该商户!"),
    CANNOT_INDEPENDENT_ENTRY("ER13BM11", "独立进件成功过的商户,不允许改为非独立进件."),
    GREP_CUST_ERROR("ER13BM12", "商户灰名单校验失败"),
    HIGH_GREP_CUST_ERROR("ER13BM13", "该客户为反洗钱系统（黑名单客户/高风险客户），交易无法完成"),
    LOW_GREP_CUST_ERROR("ER13BM14", "该客户为反洗钱系统较高风险客户，请做好客户身份识别，谨慎办理"),
    QUERY_INDUSTRY_MAP_ERROR("ER13BM15", "获取行业类别映射关系信息失败"),
    WECHAT_REAL_NAME_APPLY_ERROR("ER13BM16", "{微信实名认证自定义错误}"),
    IMAGE_PLAT_FROM_ERROR("ER13BM17", "上传影像平台错误"),
    MCHNT_NAME_ERROR("ER13BM18", "{商户名错误}"),
    BANK_CANNOT_D0_REFUND("ER13BM19", "当前法人行不允许开通D0退款账户"),
    MANAGER_ERROR("ER13BM20", "拓展经理信息不存在或状态异常"),
    WECHAT_MCHNT_CONTACT_CERT_ERROR("ER13BM23", "商户类型为小微商户时,必须录入联系人证件信息"),
    WECHAT_ACTIVITY_RATE_ERROR("ER13BM24", "{微信特殊费率自定义错误}"),
    CANCEL_NOT_SUPPOT_AUDIT("ER13BM25", "该商户状态不支持撤销提交审批操作"),
    BLACK_MCHNT_NO("ER13BM26", "黑名单商户"),
    NOT_CONF_CHANNEL_TXN_MAP("ER13BM27", "未配置通道通道服务调用配置"),
    CHANNEL_CONFIG_NOT_EXIST("ER13BM28", "获取通道服务调用配置信息失败"),
    SYSTEM_BUSYNESS("ER99BM99", "系统繁忙,请稍后再试,或联系管理员"),
    /* 系统公共错误 */
    SYSTEM_ERROR("ER129999", "系统异常");
    private String respCode;
    private String respDesc;

    RespCodeEnum(String respCode, String respDesc) {
        this.respCode = respCode;
        this.respDesc = respDesc;
    }

    public String getRespCode() {
        return respCode;
    }

    public String getRespDesc() {
        return respDesc;
    }

}
